class Student:
    def __init__(self, name, student_id):
        self.name = name
        self.student_id = student_id
        self.grades = {"语文": 0, "数学": 0, "英语": 0}
    def set_grade(self, course, grade):
        if course in self.grades:
            self.grades[course] = grade
    def print_grades(self):
        print(f"学生{self.name}(学号{self.student_id})的成绩为:")
        for course,grade in self.grades.items():
            print(f"{course}: {self.grades[course]}分")


chen = Student("小陈","00001")
zeng = Student("小曾","00002")
print(chen.name)
chen.set_grade("数学",95.5)
chen.print_grades()